package com.yanqu.road.server.manager.tomb.entity;

public class PartnerUpgradeInfo {
    private int id;

    private int times;

    private double percentage;

    private long fixedValue;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public double getPercentage() {
        return percentage;
    }

    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }

    public long getFixedValue() {
        return fixedValue;
    }

    public void setFixedValue(long fixedValue) {
        this.fixedValue = fixedValue;
    }

    public long getResultAbility(long ability) {
        double v = ((double) ability) * (1 + this.percentage) + (double) this.fixedValue;
        return (long) v;
    }

    public long getResultUpgradeAbility(long ability, int p1, int p2) {
        double v = ((double) ability) * (1 + this.percentage + (double) p1 / 1000) + (double) this.fixedValue + (double) p2;
        return (long) v;
    }

}
